﻿@model CodeSaude.Application.ViewModels.EspecialidadeViewModel

@{
    Layout = null;
}

<div class="modal-dialog">
    <div class="modal-content">
        <div class="modal-header">
            <button type="button" class="close" data-dismiss="modal" aria-label="Fechar"><span aria-hidden="true">&times;</span></button>
            <h4 class="modal-title">@ViewBag.Title</h4>
        </div>
        @using (Html.BeginForm(null, null, FormMethod.Post, new { id = "formEspecialidade" }))
        {
            <div class="modal-body">
                @Html.HiddenFor(m => m.EspecialidadeId)
                @Html.AntiForgeryToken()
                <div class="form-group">
                    <div class="row" style="margin: 10px 20px 10px 20px">
                        <div>
                            @Html.LabelFor(model => model.NomeEspecialidade, htmlAttributes: new { @class = "control-label" })
                            @Html.EditorFor(model => model.NomeEspecialidade, new { htmlAttributes = new { @class = "form-control input" } })
                            @Html.ValidationMessageFor(model => model.NomeEspecialidade, null, new { @class = "text-danger" })
                        </div>
                    </div>
                    <div class="row" style="margin: 10px 20px 10px 20px">
                        <div>
                            @Html.LabelFor(model => model.Especialista, htmlAttributes: new { @class = "control-label" })
                            @Html.EditorFor(model => model.Especialista, new { htmlAttributes = new { @class = "form-control", maxlength = "6" } })
                            @Html.ValidationMessageFor(model => model.Especialista)
                        </div>
                    </div>
                    <div class="row" style="margin: 10px 20px 10px 20px">
                        <div>
                            @Html.LabelFor(model => model.Cbo, htmlAttributes: new { @class = "control-label" })
                            @Html.EditorFor(model => model.Cbo, new { htmlAttributes = new { @class = "form-control", maxlength = "6" } })
                            @Html.ValidationMessageFor(model => model.Cbo)
                        </div>
                    </div>
                    <div class="row" style="margin: 10px 20px 10px 20px">
                        <div>
                            @Html.LabelFor(model => model.SiglaConselho, htmlAttributes: new { @class = "control-label" })
                            @Html.EditorFor(model => model.SiglaConselho, new { htmlAttributes = new { @class = "form-control", maxlength = "10" } })
                            @Html.ValidationMessageFor(model => model.SiglaConselho)
                        </div>
                    </div>
                    <div class="row" style="margin: 10px 20px 10px 20px">
                        <div>
                            @Html.LabelFor(model => model.IdSituacao, new { @class = "control-label" })
                            @Html.DropDownListFor(model => model.IdSituacao, Model.ListaSituacoes, "Selecione", new { @class = "form-control", @id = "ddlSituacao" })
                        </div>
                    </div>
                </div>
            </div>
            <div class="modal-footer">
                <input type="submit" value="Salvar" class="btn btn-primary" />
                <input type="button" value="Cancelar" class="btn btn-default" data-dismiss="modal" />
            </div>
        }
    </div>
</div>

